# -*- encoding: utf-8 -*-
"""
@File   : constants.py
@Time   : 2024-05-07 10:24:30
@Author : Leo
@Email  : wliu19920923@163.com
"""

# Stock rules
MIN_QUANTITY = 100

# Position directions
POSITION_DIRECTIONS = ("2", "3")
LONG, SHORT = POSITION_DIRECTIONS

# Operate flags
OPERATE_FLAGS = ("opened", "closed")
OPEN, CLOSE = OPERATE_FLAGS

# Order status
ORDER_STATUS = ('a', '3', '1', '0', '5')
CREATED, SUBMIT, PARTIAL, FILLED, CANCELED = ORDER_STATUS

# Trade sides
TRADE_SIDES = ("0", "1")
BUY, SELL = TRADE_SIDES
